package com.niguang.labour.admin.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.niguang.labour.admin.entity.WorkSiteUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.niguang.labour.admin.vo.LaborListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE Mapper 接口
 * </p>
 *
 * @author
 * @since 2018-06-10
 */
public interface WorkSiteUserMapper extends BaseMapper<WorkSiteUser> {

    List<LaborListVo> getLaborList(@Param("keyword") String keyword, @Param("siteId") String siteId, @Param("type") Integer type,
                                   @Param("laborCompanyId") Long laborCompanyId, Page<LaborListVo> page);


    List<WorkSiteUser> getSiteUserByUserTeamId(@Param("userId") Long userId,@Param("teamId") Long teamId);


}